<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<html lang="en">
<head th:include="common/head :: head">

<body class="layui-layout-body">

<div class="layui-layout layui-layout-admin">

    <!--头部导航-->
    <div th:include="common/header :: head_home"></div>

    <!--侧边栏-->
    <div th:include="common/sidebar :: sidebar_contract"></div>

    <div class="layui-body">
        <!-- 面包屑 -->
        <span class="layui-breadcrumb">
            <a href="./">首页</a>
            <a href="./contract.html">合同管理</a>
            <a href="">增加合同</a>
        </span>

        <!-- 内容主体区域 -->
        <div  class="top-hadoop-count">
            <div style="padding: 20px; background-color: #F2F2F2;">
                <div class="layui-row layui-col-space15">
                    <div class="layui-col-md12">
                        <div class="layui-card">
                            <div class="layui-card-body">
                                <form class="layui-form">
                                    <div class="layui-form-item">

                                            <h1 class="layui-inline-h1">合同管理----增加合同</h1>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">合同编号：</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="title" required id="ggCNumber"  lay-verify="required" autocomplete="off" placeholder="请输入合同编号" class="layui-input">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">合同名字：</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="title" required id="ggCContractName"  lay-verify="required" autocomplete="off" placeholder="请输入合同名字" class="layui-input">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">机构名字：</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="title" required id="ggCInstitutionalName"  lay-verify="required" autocomplete="off" placeholder="请输入机构名字" class="layui-input">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">合同类型：</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="title" id="ggCTypeOfContract" lay-verify="title" autocomplete="off" placeholder="请输入合同类型" class="layui-input">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">合同金额：</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="title" id="ggCcontractAmount" lay-verify="title" autocomplete="off" placeholder="请输入合同金额" class="layui-input">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">经办人：</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="title" id="ggCpersonInCharge"  autocomplete="off" placeholder="请输入经办人" class="layui-input">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">审核状态：</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="title" id="ggCAuditStatus" lay-verify="title" autocomplete="off" placeholder="请输入审核状态" class="layui-input">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">签约时间：</label>
                                        <div class="layui-input-inline">
                                            <input type="text" class="layui-input" id="ggCContractTime" placeholder="请输入签约时间">
                                            <!--<input type="text" id="ggCContractTime" lay-verify="title" autocomplete="off" placeholder="请输入签约时间" class="layui-input">-->
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">到期时间：</label>
                                            <div class="layui-input-inline">
                                                <input type="text" class="layui-input" id="ggCDueTime" placeholder="请输入到期时间">
                                                <!--<input type="text" name="phone" id="ggCDueTime" lay-verify="required|phone" autocomplete="off" placeholder="请输入到期时间" class="layui-input">-->
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">合同性质：</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="email" id="ggCNatureOfContract" autocomplete="off"  placeholder="请输入合同性质" class="layui-input">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">合同联系人：</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="fax" id="ggCContractContact" autocomplete="off"  placeholder="请输入合同联系人" class="layui-input">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">合同总金额：</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="qq" id="ggCTotalContractAmount" autocomplete="off"  placeholder="请输入合同总金额" class="layui-input">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">付款方式：</label>
                                            <div class="layui-input-inline">
                                                <input type="text"  id="ggCPaymentMethod"  autocomplete="off"  placeholder="请输入付款方式" class="layui-input">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">合同签字人：</label>
                                            <div class="layui-input-inline">
                                                <input type="text"  id="ggCSignedBy"  autocomplete="off"  placeholder="请输入合同签字人" class="layui-input">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">合同盖章：</label>
                                            <div class="layui-input-inline">
                                                <input type="text"  id="ggCContractSeal"  autocomplete="off"  placeholder="请输入合同盖章" class="layui-input">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">合同签盖章名字：</label>
                                            <div class="layui-input-inline">
                                                <input type="text"  id="ggCSignatureOfContract"  autocomplete="off"  placeholder="请输入合同签盖章名字" class="layui-input">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <div class="layui-form-item layui-form-text">
                                            <label class="layui-form-label">备注说明：</label>
                                            <div class="layui-input-block">
                                                <textarea placeholder="请输入备注说明" class="layui-textarea" id="ggCRemarks"></textarea>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">上传信息：</label>
                                            <div class="layui-input-inline">
                                                <button type="button" class="layui-btn" id="ggCPploadInformation"><i class="layui-icon"></i>上传文件</button>
                                                <div class="layui-upload-list">
                                                    <img class="layui-upload-img" style="width: 120px" id="demo1">
                                                    <p id="demoText"></p>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">到期提醒：</label>
                                            <div class="layui-input-inline">
                                                <input type="checkbox" id="ggCExpirationReminder" checked =""  name="close" lay-skin="switch" lay-filter="switchTest" lay-text="ON|OFF">
                                                <!--<input type="checkbox" name="close" lay-skin="switch" lay-text="ON|OFF">-->
                                            </div>
                                        </div>
                                    </div>



                                    <div class="layui-form-item">
                                        <div class="layui-input-block">
                                            <button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1" id="closeIframe" onclick="add_items_contract()">立即提交</button>
                                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">-->
        <!--<legend>新增商机</legend>-->
    <!--</fieldset>-->

</div>

</body>
<link rel="stylesheet" href="./css/stype/contract-items-add.css">
<div th:include="common/js :: js"></div>
<script src="./js/liandong/data.js"></script>
<script src="./js/liandong/province.js"></script>
<script src="./js/contract-items-add.js"></script>

</html>